package com.threeox.commonlibrary.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.threeox.commonlibrary.entity.engine.model.listmodel.ListModelMsg;
import com.threeox.commonlibrary.ui.fragment.base.BaseModelFragment;
import com.threeox.commonlibrary.ui.view.engineview.listmodel.ListModelBaseView;

/**
 * 
 * @ClassName: ListModelFragment
 * 
 * @Description: TODO()
 * 
 * @author 赵屈犇
 * 
 * @date 创建时间: 2017/8/10 10:19
 * 
 * @version 1.0
 * 
 */
public class ListModelFragment extends BaseModelFragment {

    protected ListModelMsg mListModelMessage;
    protected ListModelBaseView mListModelBaseView;

    @Override
    protected View setView(ViewGroup container) {
        mListModelBaseView = new ListModelBaseView(mContext);
        mListModelBaseView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
        return mListModelBaseView;
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {
        Intent intent = new Intent();
        if (mBundle != null) {
            intent.putExtras(mBundle);
        }
        mListModelBaseView.initData(intent);
    }

    @Override
    protected void initDatas() {
        mListModelMessage = mListModelBaseView.getListModelMessage();
        initBaseModelMessage(mListModelBaseView);
    }

    @Override
    protected void setListener() {
        
    }
}
